package sensores;

import java.util.ArrayList;

public class ManageSensores {
	ArrayList stockSensores = new ArrayList();
	int indexList = -1;
	
	public void addSensor(sensores.Sensor sensor){
		stockSensores.add(sensor);
	}
	
	public void getSensor(int index){
		stockSensores.get(index);
	}
	
	public void removeCurrent(int index){
		stockSensores.remove(index);
	}
	
	public int getSize(){
		return stockSensores.size();
	}
	
	public void setInitSize(){
		this.indexList = -1;
	}
	
	public sensores.Sensor getNext(){
		indexList++;
		return (sensores.Sensor)stockSensores.get(indexList);
	}
}
